//
//  XGRedPacketController.m
//  XGNotifyJump
//
//  Created by 小果 on 16/8/22.
//  Copyright © 2016年 小果. All rights reserved.
//

#import "XGRedPacketController.h"

@interface XGRedPacketController ()

@end

@implementation XGRedPacketController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIImage *oldImage = [UIImage imageNamed:@"background.jpg"];
    
    UIGraphicsBeginImageContextWithOptions(self.view.size, NO, 0.0);
    [oldImage drawInRect:CGRectMake(0, 64, self.view.width, self.view.height - 64)];
    UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
    
    UIGraphicsEndImageContext();
    self.view.backgroundColor = [UIColor colorWithPatternImage:newImage];
    
}
@end
